//shopcart模块的小仓库
import {reqAddOrUpdateShopCart} from '@/api'
import {reqCartList} from '@/api'
// actions 处理异步，接受服务器端的数据
const actions = {
  async getCartList(context,value){
      let result = await reqCartList()
      console.log(result);
      if(result.code == 200){
        
      }
  }
}
//mutations 修改state的唯一方法
const mutations = {}
//state仓库存储数据
const state = {}
// getters 计算属性，组件获取仓库的数据更加方便
const getters = {}
export default {
    state,
    actions,
    mutations,
    getters,
  };